/*
 * @Author: your name
 * @Date: 2020-08-06 10:26:14
 * @LastEditTime: 2020-08-27 09:55:48
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \ryfront\src\api\user.js
 */
//发送请求调用后端

import axios from './http.js';


//用户登录
export const userLogin = (object) => {
    return axios.post("/d_user/d-user/login",object);
}
//查询用户列表
export const userList = (object) => {
    return axios.get("/d_user/d-user/getUserList",{params:object});
}

//用户添加
export const userAdd = (object) =>{
    return axios.post("/d_user/d-user/addUser",object);
}

//用户修改
export const userEdit = (object) =>{
    return axios.post("/d_user/d-user/edituser",object);
}

//通过用户账号获取用户列表
export const userListByAccount = (account) => {
    return axios.get("/d_user/d-user/getUserListByAccount",{params:{
        userAccount:account
    }});
}